package com.wyl.auth.service;

import com.wyl.auth.bean.SseMessage;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;

/**
 * @Description
 * @Author WuYiLong
 * @Date 2025/4/22 21:11
 */
public interface SseService {

    /**
     * 连接SseEmitter
     * @return
     */
    SseEmitter connect();

    /**
     * 激活SseEmitter
     * @param sseMessage
     */
    void activeSendMessage(SseMessage sseMessage);

    /**
     * 发送消息
     */
    void sendMessage();
}